package com.ys.entity.amazonorder;

import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
*/
@Table(name="kjecp_report.dbo.TCO_DayProductJP", catalog="Id")
public class TcoDayProductJP extends BaseEntity<TcoDayProductJP> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="TimeDay", nameJava="timeDay", typeDataBase="char")
	private String timeDay;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcoDayProductJP setId(Long id) {
		this.id = id;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TcoDayProductJP setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getTimeDay() {
		return timeDay;
	}
	public TcoDayProductJP setTimeDay(String timeDay) {
		this.timeDay = timeDay;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TcoDayProductJP setNum(Integer num) {
		this.num = num;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public TcoDayProductJP setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcoDayProductJP setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcoDayProductJP setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcoDayProductJP setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcoDayProductJP tcoDayProduct(
		String productCode,
		String timeDay,
		Integer num,
		BigDecimal amount,
		Integer status
			) {
		TcoDayProductJP entity = new TcoDayProductJP();
		entity.setProductCode(productCode);
		entity.setTimeDay(timeDay);
		entity.setNum(num);
		entity.setAmount(amount);
		entity.setStatus(status);
		return entity;
	}
}